﻿@using HiLand.General.Entity
@model SimpleProductEntity
@{
    this.Layout = null;

    string productImageUrl = Url.Content("~/Content/Images/NoImage_340_255.jpg");
    if (Model.ProductMainImage != null)
    {
        string thumbnailUrl = Model.ProductMainImage.EnsureThumbnailAllVirtualPath(340, 255);
        if (string.IsNullOrWhiteSpace(thumbnailUrl) == false)
        {
            productImageUrl = thumbnailUrl;
        }
    }
}
<div class="item item-details" id="item-Details">
    <div class="image">
        <img src="@productImageUrl" title="@Model.ProductName" alt="@Model.ProductName" />
    </div>
    <div class="summary">
        <div class="title">
            <h1>
                @Model.ProductName</h1>
        </div>
        <div class="attributes">
            <h6>
                @Model.ProductBrand
            </h6>
            <div class="">
                <ul>
                    @if (Model.ProductPricePromotion < Model.ProductPriceNormal)
                    {
                        <li class="price">@Model.ProductPricePromotion</li>
                        <li class="retail"><span class="label">原价:</span> <span class="value">@Model.ProductPriceNormal</span></li>
                    }
                    else
                    { 
                        <li class="price">@Model.ProductPriceNormal</li>
                    }
                    <li class="retail"><span class="label">市场参考价:</span> <span class="value">@Model.ProductPriceReference</span></li>
                </ul>
            </div>
        </div>
        <div class="options">
            <div class="left">
                <div class="inner">
                    <h5>
                        Buy This Item Today</h5>
                    <div class="offer" style="display: block;">
                        <div class="padding">
                            快速今日付款渠道
                        </div>
                        <ul>
                            <li class="button-buy">
                                <button type="button" name="" value=""
                                    class="btn store primary large pink">
                                    立即购买</button></li>
                        </ul>
                    </div>
                    <div class="status" style="display: none;">
                        <ul>
                            <li class="updating">Please Wait While We Search For The Lowest Price</li></ul>
                        <span class="lastupdated">9</span>
                    </div>
                </div>
            </div>
            <div class="right">
                <div class="inner">
                    <h5>
                        Wait For A Pay List</h5>
                    <div class="padding">
                        <ul>
                            <li>加入购物车统一付款</li>
                        </ul>
                    </div>
                    <ul>
                        <li class="button-alert">
                            <button type="button" name="" id="B002M3SOBU" value="http://www.zingsale.com/offer/?url=http://www.amazon.com/gp/offer-listing/B002M3SOBU/?tag=zingsacom-20&amp;condition=new&amp;productid=B002M3SOBU&amp;utm_term=Apple+iPod+touch+8+GB+%282nd+Generation%29+%5BOLD+MODEL%5D&amp;category=Electronics"
                                class="btn primary large blue setalert" title="Add Price Alert">
                                加入购物车</button></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
